var buttonVolver = [{
	ui: 'confirm',
	text: 'Volver',
	handler: function()
		{
			window.open("crearDoc2.html","_self");
		}
	}
]

var dockedItems = [{
	xtype: 'toolbar',
	title: 'Interlocutores',
	dock: 'top',
	ui: 'dark',
	items: buttonVolver
}]

var tabPanel = [{
	xtype: 'tabpanel',
	items: [{
		title: 'Solicitante',
		html: 'Solicitante',
	},
	{
		title: 'Dest. Mcia',
		html: 'Dest. Mcia'
	},
	{
		title: 'Dest. Factura',
		html: 'Dest. Factura'
	},
	{
		title: 'Resp. Pago',
		html: 'Resp. Pago'
	},
	{
		title: 'Enc. Comercial',
		html: 'Enc. Comercial'
	},
	{
		title: 'Vendedor',
		html: 'Vendedor'
	},
	{
		title: 'Profesional',
		html: 'Profesional'
	}]
}]

interView = Ext.extend(Ext.Panel, 
{
	fullscreen: true,
		
	initComponent: function() 
	{
		this.crearDocPanel = new Ext.Panel(
        {
			layout: 'fit',
			fullscreen: true,
			dockedItems: dockedItems,
			items: tabPanel,
			
		});		
        
        this.items = this.crearDocPanel;
        interView.superclass.initComponent.call(this);
	}
});

Ext.reg('interView', interView);